﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _20190724
{
    public class CommonMethod
    {
        public static void ShowInt(int iParameter)
        {
            Console.WriteLine("This is {0},parameter={1},type={2} ", typeof(CommonMethod).Name, iParameter.GetType().Name, iParameter);
        }
        /// <summary>
        /// 延迟声明：推迟一切可以推迟的，一切能晚点再做的事儿，就晚点再做 运行时解析
        /// 泛型不是一个简单的语法糖，是框架升级支持的
        /// 
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="tParameter"></param>
        public static void Show<T>(T tParameter)
        {
            Console.WriteLine("This is {0},parameter={1},type={2} ", typeof(CommonMethod).Name, tParameter.GetType().Name, tParameter);
        }

    }
}
